package com.chang.product.vo;
/*
 * @Author Changzhenxi
 * @Date 2024/6/13 17:06
 * @Description This is description of method
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CatelogTwoVo {
    private String catelogOneId;  // 一级父分类id
    private List<CatelogThreeVo> catelogThreeList; //三级子分类
    private String id;
    private String name;

    // 三级分类 直接用静态内部类声明 因为其他地方也用不到这样封装
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CatelogThreeVo {
        private String catelogTwoId;
        private String id;
        private String name;
    }
}
